package com.wmcsk.dl.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by ${刘红亮} on 15-7-11 上午9:54.
 */
public class SibuConstant {
    /**
     * SP存储本地插件列表的list的key
     */
    public static final String SIBU_PLUGIN_LIST="ad_jst_pluginList";
    /**
     * 上线服务器类型
     */
    public static int SERVER_TYPE_ONLINE=0;
    /**
     * 预上线服务器类型
     */
    public static int SERVER_TYPE_PREPARE_ONLINE=1;
    /**
     * 测试服务器类型
     */
    public static int SERVER_TYPE_TEST=2;

    public static final String SDKPluginInfo = "sdkPluginInfo";
    /**
     * 当前服务器类型
     */
    public static int currentServer_type=SERVER_TYPE_PREPARE_ONLINE; //默认上线
    private static String onLineAPI="http://api.sibu.cn/";
    private static String prepare_onLineAPI="ftp://192.168.0.27";
    public static Map<String,String> appInfo = new HashMap<>();
    /**
     *  官网api
     */
    public static String getPhpAPI() {
        if(currentServer_type==SERVER_TYPE_ONLINE){
            return onLineAPI;
        }else if(currentServer_type==SERVER_TYPE_PREPARE_ONLINE){
            return prepare_onLineAPI;
        }
        return onLineAPI;
    }
}